package com.ruoyi.project.warehouse.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.warehouse.mapper.RyDepotMapper;
import com.ruoyi.project.warehouse.domain.RyDepot;
import com.ruoyi.project.warehouse.service.IRyDepotService;

/**
 * 仓库管理Service业务层处理
 *
 * @author you
 * @date 2022-09-05
 */
@Service
public class RyDepotServiceImpl implements IRyDepotService
{
    @Autowired
    private RyDepotMapper ryDepotMapper;


    public List<RyDepot> all(){
        return ryDepotMapper.all();
    }

    /**
     * 查询仓库管理
     *
     * @param id 仓库管理主键
     * @return 仓库管理
     */
    @Override
    public RyDepot selectRyDepotById(Long id)
    {
        return ryDepotMapper.selectRyDepotById(id);
    }

    /**
     * 查询仓库管理列表
     *
     * @param ryDepot 仓库管理
     * @return 仓库管理
     */
    @Override
    public List<RyDepot> selectRyDepotList(RyDepot ryDepot)
    {
        return ryDepotMapper.selectRyDepotList(ryDepot);
    }

    /**
     * 新增仓库管理
     *
     * @param ryDepot 仓库管理
     * @return 结果
     */
    @Override
    public int insertRyDepot(RyDepot ryDepot)
    {
        return ryDepotMapper.insertRyDepot(ryDepot);
    }

    /**
     * 修改仓库管理
     *
     * @param ryDepot 仓库管理
     * @return 结果
     */
    @Override
    public int updateRyDepot(RyDepot ryDepot)
    {
        return ryDepotMapper.updateRyDepot(ryDepot);
    }

    /**
     * 批量删除仓库管理
     *
     * @param ids 需要删除的仓库管理主键
     * @return 结果
     */
    @Override
    public int deleteRyDepotByIds(Long[] ids)
    {
        return ryDepotMapper.deleteRyDepotByIds(ids);
    }

    /**
     * 删除仓库管理信息
     *
     * @param id 仓库管理主键
     * @return 结果
     */
    @Override
    public int deleteRyDepotById(Long id)
    {
        return ryDepotMapper.deleteRyDepotById(id);
    }
}
